package org.uim.cricket.updater.parser.impl;

import org.uim.cricket.updater.parser.SingleMatchParsable;

public class DefaultSingleMatchParser implements SingleMatchParsable {

	public static final String MATCH_START_POINT = "<!-- START 650 AREA -->";
	
	@Override
	public StringBuffer parseSingleMatch(StringBuffer source) throws Exception {
		if (source == null) return null;
		
		int pos = source.indexOf(MATCH_START_POINT);
		if (pos < 0) return source;
		
		String s = source.substring(pos + MATCH_START_POINT.length());
		
		return new StringBuffer(s);
	}

}
